<?php
if(isset($_POST['nom'])) {
	require('../../../conf/database.conf.php');
	require('../../../class/sys/database.class.php');
	# Inclusion des  classes de gestion
	require("../../../class/app/person.class.php");
	
	
	/* ========= Ajout d'une personne ========= */
	$Personne = new Person();
	$Personne->initialisation('0', $_POST['nom'], $_POST['prenom'], $_POST['dateNaissance'], $_POST['rue'], $_POST['telephone'], $_POST['email'], '0', sha1($_POST['password']), $_POST['key'], $_POST['villeId']);	 
	echo $Personne->add();

}

?>